/**
 * 线程休眠
 */
public class TestSleep{
    public static void main(String[] args) throws InterruptedException {
        int num = 10;
        while (num>0){
            Thread.sleep(1000);
            System.out.println(num);
            num--;
        }
    }
}
